package com.slfx.data.permission.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.slfx.data.permission.entity.SystemDept;
import com.slfx.data.permission.mapper.SystemDeptMapper;
import com.slfx.data.permission.service.SystemDeptService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author: slfx
 * @Date: 2022-12-31
 * @Description:
 **/
@Service
public class SystemDeptServiceImpl extends ServiceImpl<SystemDeptMapper, SystemDept> implements SystemDeptService {

    @Resource
    private SystemDeptMapper systemDeptMapper;

    @Override
    public List<SystemDept> getChildrenByParentId(Long parentId) {
        return systemDeptMapper.getChildrenByParentId(parentId);
    }
}
